'use strict';

const Controller = require('egg').Controller;

class BaseController extends Controller {
    /**
     * 统一返回
     * @param {} data 
     */
    jsonSuccess(data){
        this.ctx.body = JSON.stringify({code:0, data: data});
    }
}
module.exports = BaseController;